﻿#include "CmdSetHeatMapSelectedCurveNameIndexs.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdSetHeatMapSelectedCurveNameIndexs::CmdSetHeatMapSelectedCurveNameIndexs()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdSetHeatMapSelectedCurveNameIndexs::~CmdSetHeatMapSelectedCurveNameIndexs()
    {
    }

    bool CmdSetHeatMapSelectedCurveNameIndexs::execute()
    {
        //bool _success = false;
        emit IBaseSignalInstance->signal_setHeatMapSelectedCurveNameIndexs(m_windowId, m_selectedCurveNameIndexs);
        return true;
    }

    void CmdSetHeatMapSelectedCurveNameIndexs::undo()
    {
    }

    void CmdSetHeatMapSelectedCurveNameIndexs::redo()
    {
        // execute();
    }

    void CmdSetHeatMapSelectedCurveNameIndexs::setHeatMapSelectedCurveNameIndexs(int windowId, QList<int> selectedCurveNameIndexs)
    {
        m_windowId = windowId;
        m_selectedCurveNameIndexs = selectedCurveNameIndexs;
    }



} // namespace PostCommand
